import { onMounted, ref } from 'vue'
import http from '@/request/index.js'
export const useNotice = () => {
  const notices = ref([])
  const getAllNoticeHttp = () => {
    http.get('/notice').then((res) => {
      notices.value = res.result.data
    })
  }
  getAllNoticeHttp()
  return { notices, getAllNoticeHttp }
}
